x86/PCI-MSI: properly determine VF BAR values
authorJan Beulich <jbeulich@novell.com>
Sat, 13 Aug 2011 09:14:58 +0000 (10:14 +0100)
committerJan Beulich <jbeulich@novell.com>
Sat, 13 Aug 2011 09:14:58 +0000 (10:14 +0100)
commit942a6f1376d8f352b46cb7964aeeaa37fcb24fd8
treebd3a419c42510d67199d8cef12099da585df35f8
parent1a9b16687d54c660c83c8d8554d7b08c3cec6895
x86/PCI-MSI: properly determine VF BAR values

As was discussed a couple of times on this list, SR-IOV virtual
functions have their BARs read as zero - the physical function's
SR-IOV capability structure must be consulted instead. The bogus
warnings people complained about are being eliminated with this
change.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/msi.c
xen/drivers/passthrough/pci.c
xen/include/xen/pci.h
xen/include/xen/pci_regs.h